#encoding: utf-8
module ApplicationHelper
  def getPhoneNumber(phone_number)
    numbers = phone_number.scan(/\d/) #pn.gsub(" ","")
    numbers = numbers.join(",")
    numbers = numbers.gsub(",","")
    numbers = numbers[3..numbers.length] if numbers[0...3].to_s == "+86"
    numbers = numbers[2..numbers.length] if numbers[0...2].to_s == "86"

    numbers
  end
end
